﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DP.AbstractFactory
{
    public class WorkerFactory : BaseWork
    {
        public override IWork CreateAmericanWork()
        {
            return new AmericanWorker();
        }

        public override IWork CreateJanpaneseWork()
        {
            return new JanpaneseWorker();
        }

        public override IWork CreateGermanWork()
        {
            return new GermanWorker();
        }

        public override IWork CreateChineseWork()
        {
            return new ChineseWorker();
        }
    }
}
